/*
 * code.cpp
 *
 *  Created on: 2022��8��10��
 *      Author: zxy
 */

#include "head.h"

Define_Module(node);


void node::initialize()
{
    if(strcmp("node2", getName()) == 0)
    {
        cMessage *msg = new cMessage("tictocMsg");
        send(msg, "out");
    }
}


void node::handleMessage(cMessage *msg)
{
    //Sleep(2000);
    send(msg, "out");
}
